package parsing;

import java.lang.annotation.*;

/**
 * Annotation for Expression subclasses that can be tokens. The regex parameter
 * should match all strings by which this token can be represented.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Token
{
    /**
     * The regular expression that this token is constructed from.
     */
    public String regex();
}
